package com.dhsc.controller.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.BqhcgzVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.xtqxgl.IBqhcgzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: BqhcgzController
 * @Description: 标签互斥规则
 * @date: 2023/11/10 11:34
 * @author: gx
 */
@Controller
@RequestMapping("/xtqxgl")
public class BqhcgzController {
    @Autowired
    private IBqhcgzService bqhcgzService;

    /**
     * @Title: queryBqhcgz
     * @Description: 查询标签互斥规则
     * @Param: bqhcgzVo
     * @return: LayuiTableVo
     * @Author: gx
     * @Date: 2023/11/10 11:15
     */
    @ResponseBody
    @RequestMapping(value="/queryBqhcgz")
    public LayuiTableVo queryBqhcgz(BqhcgzVo bqhcgzVo){
        return bqhcgzService.queryBqhcgz(bqhcgzVo);
    }

    /**
     * @Title: queryGzname
     * @Description: 查询规则名称
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/10 11:27
     */
    @ResponseBody
    @RequestMapping(value="/queryGzname")
    public ResponseObject queryGzname(){
        return bqhcgzService.queryGzname();
    }

    /**
     * @Title: querySxname
     * @Description: 查询属性名称
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/10 11:46
     */
    @ResponseBody
    @RequestMapping(value="/querySxname")
    public ResponseObject querySxname(){
        return bqhcgzService.querySxname();
    }

    /**
     * @Title: saveBqhcgz
     * @Description: 保存标签互斥规则
     * @Param: bqhcgzVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/9 17:49
     */
    @ResponseBody
    @RequestMapping(value="/saveBqhcgz")
    public ResponseObject saveBqhcgz(BqhcgzVo bqhcgzVo){
        return bqhcgzService.saveBqhcgz(bqhcgzVo);
    }

    /**
     * @Title: deleteBqhcgz
     * @Description: 删除标签互斥规则
     * @Param: bqhcgzVo
     * @return: ResponseObject
     * @Author: gx
     * @Date: 2023/11/9 17:58
     */
    @ResponseBody
    @RequestMapping(value="/deleteBqhcgz")
    public ResponseObject deleteBqhcgz(BqhcgzVo bqhcgzVo){
        return bqhcgzService.deleteBqhcgz(bqhcgzVo);
    }
}
